package me.sealer.ssm.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 功能描述： $ PhoneLoginRequest
 *
 * @author sealer
 * @email 1178884049@qq.com
 * @date 2019年12月20日 13时34分15秒
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "手机验证码快捷登录请求参数")
public class QuickLoginRequest implements LoginRequest {
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号", required = true)
    private String phoneNumber;

    @NotBlank(message = "手机验证码不能为空")
    @ApiModelProperty(value = "手机验证码", required = true)
    private String phoneTokenName;

    @NotBlank(message = "图形验证码不能为空")
    @ApiModelProperty(value = "图形验证码", required = true)
    private String imageTokenName;

    @NotBlank(message = "防重复提交码不能为空")
    @ApiModelProperty(value = "防重复提交码", required = true)
    private String resubmitTokenName;
}
